home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Popular Request
/
By Popular Request (Arsenal Computer)(SysOptics Distribution System).ISO
/
amiga3
/
pltbak01.lha
/
PlutBack.LST
< prev
Wrap
File List
|
1993-10-21
|
1KB
|
56 lines
' PlutBack
'
' ".CFG" backup program
'
' By Peter Deane
'
versdate$="21-Oct-93"
versnum$="0.1"
'
OPEN "O",#1,"*",24
PRINT #1,""
PRINT #1,"PlutBack V "+versnum$+" ("+versdate$+")"+" by PFD @3:622/401"
PRINT #1,""
RELSEEK #1,-1
c.line$=_dosCmd$
c.line$=TRIM$(c.line$)
'
IF c.line$=""
path$="Mail:"
ELSE
IF RIGHT$(c.line$,1)<>"/" AND RIGHT$(c.line$,1)<>":"
c.line$=c.line$+"/"
ENDIF
path$=c.line$
ENDIF
'
cfgfound%=0
'
DIR path$ TO "RAM:PlutBack.tmp"
IF EXIST("RAM:PlutBack.tmp")
OPEN "I",#4,"RAM:PlutBack.tmp",1024
WHILE NOT EOF(#4)
'
LINE INPUT #4,xx$
IF LEN(xx$)>4
xxq$=RIGHT$(xx$,4)
xxq$=UPPER$(xxq$)
IF xxq$=".CFG"
INC cfgfound%
exxe$="Copy "+CHR$(34)+path$+xx$+CHR$(34)+" to "+CHR$(34)+path$+xx$+"-bak"+CHR$(34)
PRINT #1,exxe$
RELSEEK #1,-1
EXEC exxe$,-1,-1
ENDIF
ENDIF
WEND
CLOSE #4
KILL "RAM:PlutBack.tmp"
ENDIF
'
PRINT #1,""
PRINT #1,"Found "+STR$(cfgfound%)+" config files in path '"+path$+"'."
CLOSE #1
END
'